﻿CREATE TABLE [dbo].[ArticulosExistenciasDetalles] (
    [IdArticuloExistenciaDetalle] INT IDENTITY (1, 1) NOT NULL,
    [IdArticuloExistencia]        INT NOT NULL,
    [IdArticuloVarianteDetalle]   INT NOT NULL,
    CONSTRAINT [PK_ArticulosExistenciasDetalles] PRIMARY KEY CLUSTERED ([IdArticuloExistenciaDetalle] ASC),
    CONSTRAINT [FK_ArticulosExistenciasDetalles_ArticulosExistencias] FOREIGN KEY ([IdArticuloExistencia]) REFERENCES [dbo].[ArticulosExistencias] ([IdArticuloExistencia]),
    CONSTRAINT [FK_ArticulosExistenciasDetalles_ArticulosVariantesDetalles] FOREIGN KEY ([IdArticuloVarianteDetalle]) REFERENCES [dbo].[ArticulosVariantesDetalles] ([IdArticuloVarianteDetalle])
);

